package fengzhuang;

import java.sql.SQLOutput;

public class test1 {
     double score;
//
//    public void setScore(double score) {
//        if(score>0&&score<=100) {
//

    public void setScore(double score) {
        this.score = score;
    }

    public test1() {////无参数构造器
    }

    public double getScore() {
        return score;
    }
//            this.score = score;
//        }else {
//            System.out.println("输入的数据异常");
//        }
//    }
//
//    public double getScore() {
//        return score;
//    }

    public   String printPass(){
        return score>60?"成绩合格":"成绩不合格";
    }

}
